package com.ljm.security.loginprocessor;

import com.ljm.security.enums.LoginTypeEnum;

import javax.servlet.ServletRequest;

/**
 * @author: ChenHuaMing
 * @Date: 2020/6/12 16:14
 * @Description:
 */
public interface LoginPostProcessor {
    /**
     * 获取 登录类型
     *
     * @return the type
     */
    LoginTypeEnum getLoginTypeEnum();

    /**
     * 获取用户名
     *
     * @param request the request
     * @return the string
     */
    String obtainUsername(ServletRequest request);

    /**
     * 获取密码
     *
     * @param request the request
     * @return the string
     */
    String obtainPassword(ServletRequest request);
}
